package com.lj.ljminsu.detail.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RequestMapping("detail")
@RestController
@CrossOrigin
public class DetailController {
    @Resource
    private RestTemplate restTemplate;
    @RequestMapping("all")
    public String all(Integer houseId){
        System.out.println("houseId:"+houseId);
       // restTemplate.getForObject("http://house-server/detail/houseStatus?houseId="+houseId)
        return "";
    }
}
